package com.bbw.act1.v2;


/**
 * @Author cpw
 * @Date 2023/6/25 16:24
 */
public class RedHeadDuck extends Duck implements Flyable,Quackable{

    @Override
    protected void display() {
        System.out.println("红头鸭");
    }

    @Override
    public void fly() {
        System.out.println("鸭子能飞");
    }

    @Override
    public void quick() {
        System.out.println("鸭子呱呱叫");
    }
}
